package cn.com.db.service;


import cn.com.db.model.DiyCart;
import cn.com.db.model.DiyCartItem;
import org.springframework.stereotype.Service;

@Service
public class DiyCartService extends BaseService{
    public void createDiyCart(DiyCart diyCart){
        diyCartDao.createDiyCart(diyCart);
    }

    public DiyCart getUserDiyCart(String userId){
        return diyCartDao.getUserDiyCart(userId);
    }

    public DiyCart getDiyCartById(String cartId){
        return diyCartDao.getDiyCartById(cartId);
    }

    public void putItem(DiyCartItem item){
        diyCartItemDao.createDiyCartItem(item);
    }

}
